package member.base.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="b_serve_goods",description="服务商品信息表")
public class ServeGoods extends StatusModel {
    @LinkTableMeta(name="business_oid",table= BusinessInfo.class,description="所属商家")
    private BusinessInfo business;
    @LinkTableMeta(name="store_oid",table= StoreInfo.class,description="所属店铺|空代表通用商品")
    private StoreInfo store;
    @LinkTableMeta(name="type_oid",table= ServeType.class,description="服务类型")
    private ServeType type;

    @FieldMeta(name="title",type= FieldType.STRING,length=100,description="标题")
    private String title;
    @FieldMeta(name="description",type= FieldType.STRING,length=1000,description="描述")
    private String description;
    @FieldMeta(name = "price",type = FieldType.DOUBLE,description = "单价")
    private Double price;
    @FieldMeta(name = "discount",type = FieldType.INT,description = "优惠比例|%")
    private Integer discount;

    @FieldMeta(name = "reward",type = FieldType.DOUBLE,description = "奖励")
    private Double reward;

    public StoreInfo getStore() {
        return store;
    }

    public void setStore(StoreInfo store) {
        this.store = store;
    }

    public Double getReward() {
        return reward;
    }

    public void setReward(Double reward) {
        this.reward = reward;
    }

    public BusinessInfo getBusiness() {
        return business;
    }

    public void setBusiness(BusinessInfo business) {
        this.business = business;
    }

    public ServeType getType() {
        return type;
    }

    public void setType(ServeType type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }
}
